package com.jewelry.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jewelry.entity.Address;
import com.jewelry.service.AddressService;
import com.jewelry.mapper.AddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author LZL
* @description 针对表【t_address】的数据库操作Service实现
* @createDate 2024-03-21 20:53:04
*/
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address>
    implements AddressService{
    @Autowired
    private AddressMapper addressMapper;

    @Override
    public List<Address> selectAddressByUserId(Integer userId) {
        return addressMapper.selectAddressByUserId(userId);
    }
}




